@model T2.WebSecurity.ASPMVC.ViewModel.ApplicationViewModel
         
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title></title>
</head>
<body>
	
	<script type="text/javascript">

        jQuery(document).ready(function() {
        $('#nav').show();
       
		
		 $('#Details').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/Application/ApplicationDetails/")' + ApplicationID,
					cache: false,
					success: function (html) {
					$('#Main').html(html);
					return false;
				}});
			});
			 $('#Add').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/Application/NewApplicationForm/")',
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			 $('#Update').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/Application/UpdateApplicationForm/")' + ApplicationID,
					cache: false,
					success: function (html) {
					$('#Dialog').html(html);
					$('#Dialog').dialog({modal:true});
					return false;
				}});
			});
			 $('#Search').click(function(event) {
				$.ajax({
					url: '@Url.Content("~/Application/ApplicationSearchAccordion/")' + ApplicationID,
					cache: false,
					success: function (html) {
					$('#Main').html(html);
					return false;
				}});
				$.ajax({
					url: '@Url.Content("~/Application/ApplicationAccordion/")',
					cache: false,
					success: function (html) {
					$('#Nav').html(html);
					return false;
				}});
			});
			 $('#ApplicationRoles1').click(function(event) {
					$.ajax({
						url: '@Url.Content("~/ApplicationRoles/ApplicationRolesGrid/")',
						cache: false,
						success: function (html) {
						$('#Main').html(html);
						$("#applicationlist").setGridParam({ datatype: 'json', url: "./ApplicationRoles/GetBy_Application_ApplicationRoles_ByParent/" + ApplicationID }).trigger("reloadGrid");
						return false;
					}});
					$.ajax({
						url: '@Url.Content("~/ApplicationRoles/ApplicationRolesAccordion/")',
						cache: false,
						success: function (html) {
						$('#Nav').html(html);
						return false;
					}});
				});
				 $('#ApplicationUser1').click(function(event) {
						$.ajax({
							url: '@Url.Content("~/ApplicationUser/ApplicationUserGrid/")',
							cache: false,
							success: function (html) {
							$('#Main').html(html);
							$("#applicationlist").setGridParam({ datatype: 'json', url: "./ApplicationUser/GetBy_Application_ApplicationUser_ByParent/" + ApplicationID }).trigger("reloadGrid");
							return false;
						}});
						$.ajax({
							url: '@Url.Content("~/ApplicationUser/ApplicationUserAccordion/")',
							cache: false,
							success: function (html) {
							$('#Nav').html(html);
							return false;
						}});
					});
					 $('#ApplicationProfileData1').click(function(event) {
							$.ajax({
								url: '@Url.Content("~/ApplicationProfileData/ApplicationProfileDataGrid/")',
								cache: false,
								success: function (html) {
								$('#Main').html(html);
								$("#applicationlist").setGridParam({ datatype: 'json', url: "./ApplicationProfileData/GetBy_Application_ApplicationProfileData_ByParent/" + ApplicationID }).trigger("reloadGrid");
								return false;
							}});
							$.ajax({
								url: '@Url.Content("~/ApplicationProfileData/ApplicationProfileDataAccordion/")',
								cache: false,
								success: function (html) {
								$('#Nav').html(html);
								return false;
							}});
						});
							
							$("#applicationaccordion1").accordion();
					
					
					    }); 
					    </script>
					     <div id="applicationaccordion1">
					    <h3><a href="#">Edit Options</a></h3>
					     <ul>
					<li><a href="#" id="Add">Add</a></li>
					<li><a href="#" id="Update">Update</a></li>
					<li><a href="#" id="Search">Search</a></li>
					<li><a href="#" id="Remove">Remove</a></li>
					<li><a href="#" id="Details">Details</a></li>
							
						 </ul>
						 
						  <h3><a href="#">Related Items</a></h3>
						  <ul>
								 <li><a href="#" id='ApplicationRoles1'>Application Roles</a></li>
								 <li><a href="#" id='ApplicationUser1'>Application User</a></li>
								 <li><a href="#" id='ApplicationProfileData1'>Application Profile Data</a></li>
					               
					            </ul>
					    </div>
					</body>
					</html>